#ifndef TREEMODEL_H
#define TREEMODEL_H

#include <QAbstractItemModel>
#include <QStandardItemModel>
#include <QModelIndex>
#include <QVariant>

class TreeItem;
class Project;

class TreeModel : public QStandardItemModel
{
    Q_OBJECT

public:
    explicit TreeModel(const QString &data, QObject *parent = nullptr);
    explicit TreeModel( QObject *parent = nullptr);
    ~TreeModel();

    void update(Project* project);

public slots:
    void dataChanged(QStandardItem* item);
private:
    QStandardItem* _projectItem;
};

#endif // TREEMODEL_H
